home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib15.dsk
/
CATDATE (NO CLOCK CARD).bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
2KB
|
68 lines
10 REM **********************
11 REM * CATALOG DATE HELLO *
12 REM * BY ARTHUR L. MENA *
13 REM * COPYRIGHT (C) 1983 *
14 REM * BY MICROSPARC, INC *
15 REM * LINCOLN, MA. 01773 *
16 REM **********************
120 REM
130 REM
140 REM This version of the program
150 REM is for those who do not have
160 REM a clock/calendar card in
170 REM their Apple
180 REM
220 REM
230 REM Poke CATDATE into memory
240 REM
250 B$ = CHR$(7) + CHR$(7) + CHR$(7): REM 3 Bells
260 RESTORE
270 FOR I = 44686 TO 44732
280 READ D: POKE I,D
290 NEXT I
300 REM
310 REM Poke JSR CATDATE into memory
320 REM
330 POKE 45611,32: POKE 45612,143: POKE 15613,174
340 POKE 45574,32: POKE 45575,143: POKE 45576,174
350 REM
360 REM Change file name length to 21
370 REM
380 POKE 45608,21: POKE 45571,21
390 REM
400 REM
410 DATA 0,173,95,170,201,4,240,12,201,48,240,8,201,26,240,4,201,0,208,23,174,156,179,189,200,180,48,15,160,8,185,223,188,157,222,180,232,136,16,246
420 DATA 32,55,176,174,156,179,96
430 REM
440 REM
450 REM Input date from keyboard
460 REM
470 TEXT : HOME
480 VTAB 5: HTAB 10: PRINT "CATDATE INSTALLED": PRINT
490 PRINT " INPUT THE CURRENT DATE": PRINT
500 PRINT
510 REM
520 VTAB 10: INPUT " WHAT IS THE CURRENT MONTH (1-12) ?";MN$
530 IF VAL(MN$) <1 OR VAL(MN$) >12 THEN PRINT B$;"MONTH INCORRECT": GOTO 520
540 VTAB 12: INPUT " WHAT IS THE CURRENT DAY (1-31) ?";DA$
550 IF VAL(DA$) <1 OR VAL(DA$) >32 THEN PRINT B$;"DAY INCORRECT": GOTO 540
560 YR$ = "/82"
570 REM
580 DA$ = STR$( VAL(DA$))
590 IF VAL(DA$) <10 THEN DA$ = "0" +DA$
600 MN$ = STR$( VAL(MN$))
610 IF VAL(MN$) <10 THEN MN$ = "0" +MN$
620 REM
630 DT = 48351: REM $BCDF
640 DT$ = MN$ +"/" +DA$ +YR$ +" "
650 PRINT : PRINT
660 PRINT DT$" HAS BEEN INSTALLED AS THE CURRENT DATE"
670 REM
680 REM Poke date into memory
690 REM
700 J = 8
710 FOR I = 0 TO LEN(DT$) -1
720 POKE DT +J, ASC( MID$ (DT$,I +1,1)) +128
730 J = J -1
740 NEXT I
750 END